<!DOCTYPE html>
<html lang="zh_cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
</head>
<body>
	<div class="login">
		<form>
			<label for="ID">ID</label><input type="text" name="ID" id="ID" value="13230461311">
			<label for="PW">PW</label><input type="text" name="PW" id="PW" value="123qwe">
		</form>
	</div>

	<script src="./js/jquery-1.12.4.min.js"></script>
	<script>
		$(function(){
			var jdata = {"userNameOrEmailAddress":"13230461311","password":"123qwe","rememberClient":false,"twoFactorRememberClientToken":null,"singleSignIn":false,"returnUrl":null};
			
			$.ajax({
				url:"https://mom.51xietong.cn/appsms_api/api/TokenAuth/Authenticate",
				type:"POST",
				contentType: "application/json",
				dataType:"json",
				data:JSON.stringify(jdata),//schoolList是你要提交是json字符串
				success:function (data) {
					console.log(data);
					localStorage.setItem('accessToken',data.result.accessToken);
					window.location.href = "./notReceive.html";
				}
			});
		});
	</script>
</body>
</html>